package org.opencare.plugins.listener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Listener {
	/** Logger for this class and subclasses */
	protected final Log logger = LogFactory.getLog(getClass());
	
	private ApplicationContext ac = null;

	public void start() {
		logger.info("application is starting....");
		// ac = new FileSystemXmlApplicationContext("opencare-listener.xml");
		
		ac = new ClassPathXmlApplicationContext("opencare-listener.xml");
		
		
	}

	public void stop() {
		logger.info("application is stopping....");
	}
}
